package ${cfg.package_name}.dto;


import io.swagger.annotations.ApiModel;
import lombok.*;
import ${cfg.package_name}.dto.base.${entity}BaseDto;

/**
 * ${table.comment!}
 * @author ${author}
 * @since ${date}
 */

@ApiModel(description = "${entity}Dto传输对象")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
//@Builder
//@AllArgsConstructor
//@NoArgsConstructor
public class ${entity}Dto extends ${entity}BaseDto{
    private static final long serialVersionUID = 1L;



    // 自动装载数据：调用装载方法assemble(), 一定要用第一个私有变量，以确保方法里对各属性引用有效
    public Long getId() {
        assembleAuto();
        return super.getId();
    }

    // 自动装载数据
    public void assembleAuto() {
        try {
            // System.out.println("assembleAuto");
        }catch (Exception e){
            e.printStackTrace();
        }
    }

}
